package cn.newgrand.netcall.search.contact;

import java.util.ArrayList;
import java.util.List;

import org.jivesoftware.spark.SparkManager;

import cn.newgrand.netcall.imp.search.contact.ContactSearchResultPanel;

/**
 * @author SidneyRen E-mail:SidneyRen@hotmail.com
 * @version create time：2010-8-2 下午07:34:41
 * 
 * 存储联系人列表   
 * 其字段如果是中文的转换为拼音保存
 * 此类主要用于实现联系人的搜索功能
 * 
 */
public class ContactSearchManager {
	private static ContactSearchManager singleton;
	private static final Object LOCK = new Object();
	private ContactSearch contactSearch ;
	
	private ContactSearchManager(){}
	public static ContactSearchManager getInstance(){
		synchronized(LOCK){
		if(null == singleton){
			singleton = new ContactSearchManager(); 
			return singleton;
		}
		else 
			return singleton;
		}
	}

	public ContactSearch getContactSearch(){
		return new ContactSearch();
	}
	
	public ContactSearchResultPanel getContactSearchResultPanel(){
		return new ContactSearchResultPanel();
	}
}
